#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include "print.h"
int fib(int n)
{
	if (n <= 2)
	{
		return 1;
	}
	else
		return fib(n - 1) + fib(n - 2);
}
int main()
{
	unsigned int num = 0;
	int n = 0;
	scanf("%u %d", &num, &n);
	print(num);
	int ret = fib(n);
	printf("\n%d\n", ret);
	return 0;
}